import { CustomFlow } from "src/custom-flow/entities/custom-flow.entity";
import { Column, CreateDateColumn, Entity, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";

@Entity()
export class CustomFlowNode {
  @PrimaryGeneratedColumn("uuid")
  id: string;

  @Column()
  nodeName: string;

  @Column()
  formId: string;

  @CreateDateColumn()
  createdDate: Date;

  @UpdateDateColumn()
  updatedDate: Date;

  @ManyToOne(()=>CustomFlow,customFlow=>customFlow.customFlowNodes)
  customFlow:CustomFlow
}
